import process from 'process';

const getBaseUrl = () => {
  let BASE_URL = "";
  if (process.env.NODE_ENV === "development") {
    //开发环境
    BASE_URL = 'https://zc.nyjinguan.com'
    // BASE_URL = "http://139.9.231.74:3030";
    // BASE_URL = "http://122.9.136.66:7080"; //测试
    // BASE_URL = "http://192.168.3.87:8080"; // 义创
    // BASE_URL = "http://192.168.3.28:8080"; // 玉良
  } else {
    // 生产环境
    BASE_URL = 'https://zc.nyjinguan.com'
    // BASE_URL = "http://139.9.231.74:3030";
    // BASE_URL = "http://122.9.136.66:7080"; //测试
    // BASE_URL = "http://192.168.3.87:8080"; // 义创
    // BASE_URL = "http://192.168.3.28:8080"; // 玉良
  }
  return BASE_URL;
};

export default getBaseUrl;
